package com.tom.controller.remote;

import com.tom.service.IArticleService;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import com.tom.config.CustomResponse;
import com.tom.dto.ArticleOperateParamDTO;
import com.tom.service.ArticleRemoteService;

@Slf4j
@RestController
@RequestMapping("/article/remote")
public class ArticleRemoteController {

    @Autowired
    private ArticleRemoteService articleRemoteService;


    @Autowired
    private IArticleService articleService;

    @ApiOperation("大网文章变更操作接口")
    @PostMapping(value = "/bwArticleOperate")
    public CustomResponse operate(@RequestBody @Validated ArticleOperateParamDTO articleParamDTO){
        String message = articleRemoteService.operate(articleParamDTO);
        return CustomResponse.ok();
    }
}
